package cn.uce.common.log.entity;

import cn.uce.base.entity.BaseEntity;
import cn.uce.core.db.annotion.Table;

import java.util.Date;

/**
 * @Description: Entity类
 * @author UCE-CodeGenerator
 * @date 2020年05月04日 上午11:44:09
 */
@Table("operation_log")
public class OperationLog extends BaseEntity {
	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 1L;

	public OperationLog(){
	}

	public OperationLog(String threadName,String remoteIp){
		this.threadName = threadName;
		this.remoteIp = remoteIp;
	}

	
    /** 
	 * 线程名称 
	 */
	private String threadName;
    /** 
	 * 日志内容 
	 */
	private String message;
    /** 
	 * 日志追踪ID 
	 */
	private String trackId;
	/**
	 * 客户端IP
	 */
	private String remoteIp;
    /** 
	 * 操作业务对象 
	 */
	private String operationName;
    /** 
	 * 操作对象文件 
	 */
	private String operationFilename;
    /** 
	 * 操作对象类 
	 */
	private String operationClass;
    /** 
	 * 操作对象方法 
	 */
	private String operationMethod;
    /** 
	 * 操作行 
	 */
	private String operationLine;
    /** 
	 * 参数0 
	 */
	private String arg0;
    /** 
	 * 参数1 
	 */
	private String arg1;
    /** 
	 * 参数2 
	 */
	private String arg2;
    /** 
	 * 参数3 
	 */
	private String arg3;
    /** 
	 * 创建机构. 
	 */
	private Integer createOrg;
	/**
	 * 创建人名称
	 */
	private String createEmpName;
	
	
	/**
	 * 获取 线程名称
	 */
	public String getThreadName() {
		return threadName;
	}
	
	/**
	 * 设置 线程名称
	 */
	public void setThreadName(String threadName) {
		this.threadName = threadName;
	}
	
	/**
	 * 获取 日志内容
	 */
	public String getMessage() {
		return message;
	}
	
	/**
	 * 设置 日志内容
	 */
	public OperationLog setMessage(String message) {
		this.message = message;
		return this;
	}
	
	/**
	 * 获取 日志追踪ID
	 */
	public String getTrackId() {
		return trackId;
	}
	
	/**
	 * 设置 日志追踪ID
	 */
	public void setTrackId(String trackId) {
		this.trackId = trackId;
	}
	
	/**
	 * 获取 操作业务对象
	 */
	public String getOperationName() {
		return operationName;
	}
	
	/**
	 * 设置 操作业务对象
	 */
	public OperationLog setOperationName(String operationName) {
		this.operationName = operationName;
		return this;
	}
	
	/**
	 * 获取 操作对象文件
	 */
	public String getOperationFilename() {
		return operationFilename;
	}
	
	/**
	 * 设置 操作对象文件
	 */
	public OperationLog setOperationFilename(String operationFilename) {
		this.operationFilename = operationFilename;
		return this;
	}
	
	/**
	 * 获取 操作对象类
	 */
	public String getOperationClass() {
		return operationClass;
	}
	
	/**
	 * 设置 操作对象类
	 */
	public OperationLog setOperationClass(String operationClass) {
		this.operationClass = operationClass;
		return this;
	}
	
	/**
	 * 获取 操作对象方法
	 */
	public String getOperationMethod() {
		return operationMethod;
	}
	
	/**
	 * 设置 操作对象方法
	 */
	public OperationLog setOperationMethod(String operationMethod) {
		this.operationMethod = operationMethod;
		return this;
	}
	
	/**
	 * 获取 操作行
	 */
	public String getOperationLine() {
		return operationLine;
	}
	
	/**
	 * 设置 操作行
	 */
	public OperationLog setOperationLine(String operationLine) {
		this.operationLine = operationLine;
		return this;
	}
	
	/**
	 * 获取 参数0
	 */
	public String getArg0() {
		return arg0;
	}
	
	/**
	 * 设置 参数0
	 */
	public void setArg0(String arg0) {
		this.arg0 = arg0;
	}
	
	/**
	 * 获取 参数1
	 */
	public String getArg1() {
		return arg1;
	}
	
	/**
	 * 设置 参数1
	 */
	public void setArg1(String arg1) {
		this.arg1 = arg1;
	}
	
	/**
	 * 获取 参数2
	 */
	public String getArg2() {
		return arg2;
	}
	
	/**
	 * 设置 参数2
	 */
	public void setArg2(String arg2) {
		this.arg2 = arg2;
	}
	
	/**
	 * 获取 参数3
	 */
	public String getArg3() {
		return arg3;
	}
	
	/**
	 * 设置 参数3
	 */
	public void setArg3(String arg3) {
		this.arg3 = arg3;
	}
	
	/**
	 * 获取 创建机构.
	 */
	public Integer getCreateOrg() {
		return createOrg;
	}
	
	/**
	 * 设置 创建机构.
	 */
	public OperationLog setCreateOrg(Integer createOrg) {
		this.createOrg = createOrg;
		return this;
	}

	public String getRemoteIp() {
		return remoteIp;
	}

	public void setRemoteIp(String remoteIp) {
		this.remoteIp = remoteIp;
	}

	public OperationLog setCreateEmpCode(String createEmp) {
		super.setCreateEmp(createEmp);
		return this;
	}

	public String getCreateEmpName() {
		return createEmpName;
	}

	public OperationLog setCreateEmpName(String createEmpName) {
		this.createEmpName = createEmpName;
		return this;
	}

	public OperationLog setLastTime(Date time){
		setUpdateTime(time);
		return this;
	}
}